package com.flx.at.spring.code.test.testbeanregister.beanfactory;

import com.flx.at.spring.code.test.testbeanregister.component.BeanF;
import org.springframework.beans.factory.FactoryBean;

/**
 * @Author: Fenglixiong
 * @Date: 2021/7/3 18:23
 * @Description: 应用场景：bean创建初期需要设置大量的内容
 */
public class MyFactoryBean implements FactoryBean<BeanF> {
    @Override
    public BeanF getObject() throws Exception {
        return new BeanF();
    }

    @Override
    public Class<?> getObjectType() {
        return BeanF.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
